import type { AxiosRequestConfig } from 'axios'
import type { ApiResult } from '@/types/app'
import type { RequestOptions } from '@/utils/http'
import type { UserInfo } from './type'
import { http } from '@/utils/http'

export const userApi = {
  // 获取登录用户信息
  getCurrentUserInfo(config?: AxiosRequestConfig, options?: RequestOptions) {
    return http.get<ApiResult<UserInfo>>({ url: '/user-management/api/v1/system/user/info/login', ...config }, { ...options })
  }
}
